import api from "../api"
import { getPath } from "../utils"

export default async function AuthLoader() {

    const data = await api.getPermissionList()
    const menuPathList = getPath(data.menuList)
    return {
        buttonList: data.buttonList,
        menuList: data.menuList,
        menuPathList
    }
}